const connection = require("../../../config/mysql.js");

/**addUserLog */
const addUserLog = async (userid, behavior, type) => {
    if (type) {
        await connection.query(`INSERT INTO user_log (userid,behavior,type) VALUES (${userid},"${behavior}","${type}")`);
    } else {
        await connection.query(`INSERT INTO user_log (userid,behavior) VALUES (${userid},"${behavior}")`);
    }
}
module.exports = {
    addUserLog
}